import request from '@/utils/request'

//列表
export function differenceRepairSelectAll(params) {
    return request({
      url: '/ny-iqc/differenceRepair/selectAll',
      method: 'get',
      params
    })
}
//列表
export function differenceRepairAdd(data) {
    return request({
      url: '/ny-iqc/differenceRepair/add',
      method: 'post',
      data
    })
}
//列表
export function differenceRepairUpdate(data) {
    return request({
      url: '/ny-iqc/differenceRepair/update',
      method: 'put',
      data
    })
}
//列表
export function differenceRepairDelete(params) {
    return request({
      url: `/ny-iqc/differenceRepair/delete/${params}`,
      method: 'delete',
    })
}
//列表
export function differenceRepairGetOneBy(params) {
    return request({
      url: '/ny-iqc/differenceRepair/getOneBy',
      method: 'get',
      params
    })
}
//列表
export function listByDivisionIds(params) {
  return request({
    url: '/qcmasterdata/plant/listByDivisionIds',
    method: 'get',
    params
  })
}

//列表
export function fetchBoxNoList(params) {
  return request({
    url: '/ny-iqc/incomingInspection/boxNo',
    method: 'get',
    params
  })
}